//
//  GraphView.h
//  HypERLtrace
//
//  Created by Vladimir Sarpe on 29/07/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

@interface GraphView : NSView {
	NSRect frameRect;
	NSRect prevRect;
	NSMutableArray* rawData;
	NSMutableArray* rawOverlayData;
	NSMutableArray* graphData;
	NSMutableArray* graphOverlayData;
	NSBezierPath* dataPath;
	NSBezierPath* overlayPath;
	NSColor* graphColor;
	NSColor* backColor;
	NSPoint initloc;
	NSPoint afterloc;
	NSPoint lastDragLocation;
	int lastevent;
	int max;
	int found;
	int location;
	NSString* spawn;
	NSString* die;
	BOOL initdraw;
	BOOL overlay;
	BOOL dragging;
	
	IBOutlet id controller;
}

- (void)loadData:(NSMutableArray*)data andLast:(int) last andColor:(NSColor*)color andBackground:(NSColor*)bcolor;
- (void) notifyMatched:(NSMutableArray*) matched andQuery:(BOOL)query;
- (void) notifyMouseOverTime:(int)time;
- (void) notifyMouseOverActor:(NSString*)lifetime;

@end
